package com.uuyun.preview.responseData;

import lombok.extern.slf4j.Slf4j;

/**
 * @author qiyi
 * @Title: lcc
 * @Description:
 * @Version:1.0.0
 * @Since:jdk1.8
 * @date 2021/8/5
 */
@Slf4j
public enum EnumErrorCode {

    /**
     *
     */
    SUCCESS(0, "接口调用成功"),
    ERROR_REQUEST_FIELD(5000,"请求参数错误"),
    NO_EXIST_USER(5001,"用户不存在"),
    ;

    private int code;

    private String message;

    EnumErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
